package top.codechap.ioc.framework.beans.factory;

/**
 * IOC容器父接口
 */
public interface BeanFactory {

    //根据bean对象的名称获取bean
    Object getBean(String name) throws Exception;
    //根据bean对象的名称和对象类型,获取bean
    <T> T getBean(String name,Class<? extends T> clazz) throws Exception;
}
